

<?php
session_start();
$back = (isset($_GET['back']))?$_GET['back']:0;//gets the actual itemID from getPaintings, if itemID is unset it is set to zero(first time ov visit to prevent errors)
$itemID = (isset($_GET['itemID']))?$_GET['itemID']:0;//gets the actual itemID from getPaintings, if itemID is unset it is set to zero(first time ov visit to prevent errors)
include '../Huvudmeny/index.php';
include '../phpFunctions/picIndexArray.php';
include '../phpFunctions/getSinglePictureUrl.php';
include '../phpFunctions/getCategory.php';

$url = '../Bildgalleri/changeDeleteItemForm.php';
$picURL = getSinglePictureUrl($itemID);
$itemTitle = getItemTitle($itemID);
$itemPrice = getItemPrice($itemID);
$itemSize = getItemSize($itemID);
$itemDescription =  getItemDescription($itemID);
$itemUsername = getItemUsername($itemID);
$subcategoryID = getSubCategoryID($itemID);
$subcategory = getSubCategory($subcategoryID);
$maincategory = getMainCategory($subcategoryID);
$itemEmail = getItemEmail($itemID);
$itemLocation = getItemLocation($itemID);
$itemUploadDate = getItemUploadDate($itemID);
$itemPhoneNumber = getUserInfo($itemUsername, 'telefonnummer');
if ($back != NULL){Print '<div style = "left: 100px; top:20px; margin-left: 160px;"><a href="javascript:history.back(-1);">Tillbaka till sökresultat</a></div>';}
   print '<center>';
include '../Bildgalleri/itemDisplay.php';
Print '</center>';











include '../Banner/sidfot.php';
?>
